package com.engine4cloud.tdf.supervision.dto.query;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 矫正对象家庭社会关系-请求对象
 *
 * @author wenjie
 * @date 2024-04-01 14:22:32
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "矫正对象家庭社会关系-请求对象")
public class JzdxFamilySocietyQueryDTO implements Serializable {
    /**
     * 主键
     */
    @Schema(description = "主键")
    private Long id;

    /**
     * 社区矫正对象编号
     */
    @Schema(description = "社区矫正对象编号")
    @NotBlank(message = "矫正对象编号不能为空")
    private String rybh;

    /**
     * 姓名
     */
    @Schema(description = "姓名")
    private String xm;

    /**
     * 关系
     */
    @Schema(description = "关系")
    private String gx;

    /**
     * 联系电话
     */
    @Schema(description = "联系电话")
    private String lxdh;

    public JzdxFamilySocietyQueryDTO(String code) {
        this.rybh = code;
    }

}